/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package treeOfLife;

import javax.swing.tree.DefaultMutableTreeNode;
public class MyNode extends DefaultMutableTreeNode{
    String level, text, name;
    public MyNode(String level, String name, String text){
        this.level = level;
        this.text = text;
        this.name = name;
    }
    @Override
    public String toString(){
        return this.name;
    }
    public String atLevel(){
        return this.level;
    }
    public String getInfo(){
        return this.text;

    }
}
